package com.tensquare.search.dao;

import com.tensquare.search.pojo.Article;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

/**
 * @ClassName ArticleSearchDao
 * @Description TODO
 * @Author zhangshuai
 * @Date 2019/1/16 17:22
 * @Version 1.0
 **/
public interface ArticleSearchDao extends ElasticsearchRepository<Article, String> {


    /**
     * 检索
     *
     * @param title
     * @param content
     * @param pageable
     * @return
     */
    public Page<Article> findByTitleOrContentLike(String title, String content, Pageable pageable);

}
